package com.pdd.mall.dto;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * 地址参数
 */
@Data
public class AddressParam {
    
    private Long id;
    
    @NotEmpty(message = "收货人姓名不能为空")
    private String name;
    
    @NotEmpty(message = "收货人电话不能为空")
    private String phone;
    
    @NotEmpty(message = "省份不能为空")
    private String province;
    
    @NotEmpty(message = "城市不能为空")
    private String city;
    
    @NotEmpty(message = "区/县不能为空")
    private String district;
    
    @NotEmpty(message = "详细地址不能为空")
    private String detail;
    
    private Integer isDefault;
}
